package demo.day08.work_Bank;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/7/26-07-26-19:26
 * @Description：demo.day08.work_Bank
 */
public class SavingAccount extends Account{
    double rate;

    public SavingAccount(Double balance, double rate) {
        super((balance + balance*rate*0.01));
        this.rate = rate;
    }
}
